﻿@*
	Iván Loire - www.iloire.com
	Please readme README file for license terms.

	ASP.NET MVC3 ACME Invocing app (demo app for training purposes)
*@

@model Customer

 <fieldset>
 
        @if (Model != null)
        {   <text>
            @Html.HiddenFor(model => model.CustomerID)
            </text>
        }

        <div class="clearfix">
            <div class="span4">
                @Html.LabelFor(model => model.Name)
        
                <div class="input">
                    @Html.TextBoxFor(model => model.Name, new { @class="span3" })
                    @Html.ValidationMessageFor(model => model.Name)
                </div>
		    </div>

            <div class="span4">
                @Html.LabelFor(model => model.CompanyNumber)
        
                <div class="input">
                    @Html.TextBoxFor(model => model.CompanyNumber, new { @class = "span3" })
                    @Html.ValidationMessageFor(model => model.CompanyNumber)
                </div>
		    </div>
        </div>

        <div class="clearfix">
            <div class="span4">
                @Html.LabelFor(model => model.Address)
        
                <div class="input">
                    @Html.TextAreaFor(model => model.Address, new { @class="span3"})
                    @Html.ValidationMessageFor(model => model.Address)
                </div>
		    </div>

            <div class="span4">
                @Html.LabelFor(model => model.CP)
        
                <div class="input">
                    @Html.TextBoxFor(model => model.CP, new { @class="span3"})
                    @Html.ValidationMessageFor(model => model.CP)
                </div>
		    </div>

             <div class="span4">
                @Html.LabelFor(model => model.City)
        
                <div class="input">
                    @Html.TextBoxFor(model => model.City, new { @class = "span3" })
                    @Html.ValidationMessageFor(model => model.City)
                </div>
            </div>
        </div>
        
     
         <div class="clearfix">
             <div class="span4">
                @Html.LabelFor(model => model.ContactPerson)
        
                <div class="input">
                    @Html.TextBoxFor(model => model.ContactPerson, new { @class = "span3" })
                    @Html.ValidationMessageFor(model => model.ContactPerson)
                </div>
            </div>

              <div class="span4">
                @Html.LabelFor(model => model.Email)
        
                <div class="input">
                     @Html.TextBoxFor(model => model.Email, new { @class = "span3" })
                    @Html.ValidationMessageFor(model => model.Email)
                </div>
		    </div>
		</div>

        <div class="clearfix">
            <div class="span4">
                @Html.LabelFor(model => model.Phone1)
        
                <div class="input">
                    @Html.TextBoxFor(model => model.Phone1, new { @class = "span3" })
                    @Html.ValidationMessageFor(model => model.Phone1)
                </div>
            </div>
		

            <div class="span4">
                @Html.LabelFor(model => model.Phone2)
        
                <div class="input">
                    @Html.TextBoxFor(model => model.Phone2, new { @class = "span3" })
                    @Html.ValidationMessageFor(model => model.Phone2)
                </div>
		    </div>

           <div class="span4">
                @Html.LabelFor(model => model.Fax)
        
                <div class="input">
                    @Html.TextBoxFor(model => model.Fax, new { @class = "span3" })
                    @Html.ValidationMessageFor(model => model.Fax)
                </div>
		    </div>
        </div>

     
        
        <div class="clearfix">
            <div class="span6">
                @Html.LabelFor(model => model.Notes)
        
                <div class="input">
                    @Html.TextAreaFor(model => model.Notes)
                    @Html.ValidationMessageFor(model => model.Notes)
                </div>
		    </div>
        </div>

		<div class="actions">
            <input type="submit" class="btn primary" value="Save" />
            <input type="button" class="btn closeModal" value="Close window" />
			@*@Html.ActionLink("Back to List", "Index", null, new { @class = "btn" })*@
        </div>
    </fieldset>